package adapter;

/**
 * @author ycc
 * @date 2024/4/2
 */
public class Main {
    public static void main(String[] args) {
        MediaPlayer audioPlayer = new AudioPlayer();
        audioPlayer.play("mp3", "beyond_the_horizon.mp3");
        audioPlayer.play("mp4", "alone.mp4");
        audioPlayer.play("vlc", "far_far_away.vlc");
        audioPlayer.play("avi", "mind_me.avi");

        MediaPlayer mediaAdapter = new MediaAdapter("mp4", "far_far_away.mp4");
        mediaAdapter.play("mp4", "far_far_away.mp4");
        mediaAdapter.play("vlc", "far_far_away_vlc.vlc");
    }
}
